package com.riaevolution.utils {
	import flash.events.Event;
	/**
	 * Triggered event when validation was executed.
	 */
	public class ApplicationBrowserEvent extends Event {
		/**
		 * Fail validation event 
		 */
		public static const ERROR:String="applicationAlreadyRunning";
		
		/**
		 * Success validation event 
		 */
		public static const SUCCESS:String="applicationUniqueIsRunning";
		/**
		 * Triggered event
		 *  
		 * @param type
		 * @param message
		 * @param bubbles
		 * @param cancelable
		 * 
		 */
		public function ApplicationBrowserEvent(type:String, message:String, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
			_message = message;
		}

		private var _message:String;
		/**
		 * Return a nice message information 
		 * @return 
		 * 
		 */		
		public function get message():String {
			return this._message;
		}
	}
}